public class HW1 {
    public static void main(String[] args) {
        int i=1;
        int num=0;
        do {
            if (i%7==0||i%10==7||i/10==7){
            System.out.println(i);
            num++;
            }
            i++;

        }while (i<=99);
        System.out.println(num+"个");
    }
}
